import jieba
import jieba.posseg as pseg
from collections import Counter
from wordcloud import WordCloud
import matplotlib.pyplot as plt

doc = '经历台前幕后的多次打磨，这个作品终于呈现在大家面前，你们喜欢吗'
#C:\Windows\Fonts\simfang.ttf
fpath = '/Users/zhaojichang/Library/Fonts/Microsoft-YaHei.ttf'

terms = jieba.cut(doc)
terms = list(terms)
tfreq = Counter(terms)
for term in tfreq:
	print(f'{term}\t{tfreq[term]}')
